package cn.community.system.service;

import cn.community.system.domain.Permission;
import cn.community.system.query.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void delete(Long id);
    void save(Permission permission);
    Permission get(Long id);
    List<Permission> listAll();
    void update(Permission permission);

    PageInfo query(QueryObject qo);

    // 加载权限
    void reload();

    List<Permission> listMyPermission(Long id);

}
